package com.tensquare.qa.client;

import com.tensquare.qa.client.impl.LabelClientImpl;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created by WF on 2019/9/24 10:10
 */
@FeignClient(value="tensquare-base",fallback = LabelClientImpl.class)      //这里指定的微服务就是我们要调用的微服务，来自于此服务中的application.yml文件中的定义
public interface LabelClient {

    @GetMapping("/label/{labelId}")
    public Result findById(@PathVariable("labelId") String labelId);
}
